# coding=utf-8
# 全世界最帅的帅哥
from ysgg1_club_comment.modules import db
from ysgg1_club_comment.modules.base_model import BaseModel
from sqlalchemy.dialects.mysql import TINYINT


class SubjectCategory(BaseModel):
    __tablename__ = 'subject_category'

    category_name = db.Column(db.String(16), comment="分类名称")
    category_type = db.Column(TINYINT, comment="分类类型")
    image_url = db.Column(db.String(64), comment="图片链接")
    parent_id = db.Column(db.BIGINT, comment="父级id")

    def __repr__(self):
        return f"<SubjectCategory {self.category_name}>"